Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.base--widgets
In component org.nuxeo.ecm.platform.forms.layouts.webapp.base
org.nuxeo.ecm.platform.forms.layouts.webapp.base
inside nuxeo-platform-webapp-base-5.8.jar
This contribution is part of XML component Extension Point
Extension point widgets of component WebLayoutManager.Contributed Items
XML Source
<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
<widget name="document_edit_comment" type="textarea">
<labels>
<label mode="any">label.editComment</label>
</labels>
<helpLabels>
<label mode="any">label.editComment.tooltip</label>
</helpLabels>
<translated>true</translated>
<fields>
<field>contextData['request/comment']</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
</widgetModes>
</widget>
<widget name="document_edit_current_version" type="text">
<labels>
<label mode="any">label.version</label>
</labels>
<helpLabels>
<label mode="any">label.versioning.currentVersion.tooltip</label>
</helpLabels>
<translated>true</translated>
<fields>
<field>#{versioningManager.getVersionLabel(layoutValue)}</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
<mode value="any">
#{nxu:test(layoutValue.versionable and
!layoutValue.folder, 'view', 'hidden')}
</mode>
</widgetModes>
</widget>
<widget name="document_edit_versioning_options" type="setVariable">
<labels>
<label mode="any">label.versioning.selectVersioningOption</label>
</labels>
<helpLabels>
<label mode="any">label.versioning.changeVersion.tooltip</label>
</helpLabels>
<translated>true</translated>
<widgetModes>
<mode value="create">hidden</mode>
<mode value="any">
#{nxu:test(layoutValue.versionable and not
layoutValue.folder and
versioningManager.getVersionIncEditOptions(layoutValue).hasOptions(),
mode, 'hidden')}
</mode>
</widgetModes>
<properties widgetMode="any">
<property name="var">incOptions</property>
<property name="value">
#{versioningManager.getVersionIncEditOptions(layoutValue)}
</property>
<property name="cache">true</property>
</properties>
<subWidgets>
<widget name="versioning_options" type="selectOneRadio">
<fields>
<field>contextData['default/VersioningOption']</field>
</fields>
<properties widgetMode="edit">
<property name="defaultValue">
#{incOptions.defaultVersioningAction.name()}
</property>
<property name="converter">documentVersioningConverter</property>
<property name="layout">pageDirection</property>
<property name="required">true</property>
<property name="requiredMessage">
#{messages['error.versioning.none_selected']}
</property>
</properties>
<selectOptions>
<options itemLabel="#{messages[item.getValue()]}" itemValue="#{item.getKey()}" value="#{incOptions.optionsForDisplay}" var="item"/>
</selectOptions>
</widget>
</subWidgets>
</widget>
</extension>